package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.MessageForm;
import com.springboot.cloud.demos.entity.form.MessageQueryForm;
import com.springboot.cloud.demos.entity.po.Message;
import org.springframework.stereotype.Component;

@Component
public class MessageServiceFallback implements MessageService {
    @Override
    public Result save(MessageForm MessageForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result list(MessageQueryForm messageQueryForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result count(MessageQueryForm queryForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result update(Message messageForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
